<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta content="" charset=UTF-8>
    <title>主页</title>
</head>
<body>
欢迎你：<span th:text="${#session.getAttribute('user')}"></span>
<a th:href="@{/teacher/teaAdd}">添加</a>
    <table width="700" colspan="0" cellspacing="0" cellpadding="0" border="1">
     <tr>
         <td>编号</td>
         <td>名称</td>
         <td>操作</td>
     </tr>
     <tr th:each="tea:${page.getRecords()}">
         <td>[[${tea.teacherId}]]</td>
         <td>[[${tea.teacherName}]]</td>
         <td>
             <a th:href="@{'/teacher/delete/'+${tea.teacherId}}">删除</a>
             <a th:href="@{'/teacher/update/'+${tea.teacherId}}">修改</a>
         </td>
     </tr>
 </table>
    <div>
        <div class="modal-footer no-margin-top">
            <ul >
                <li th:each="num:${#numbers.sequence(0, page.getPages() - 1)}"
                    style="text-align: center; height: 10px;width: 10px;margin: 10px;list-style: none;display:block;float: left">
                        <a th:href="@{'/teacher/list/' + ${num + 1}}" th:text="${num + 1}"></a>
                </li >
            </ul>
        </div>
    </div>
</body>
</html>